<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta name="renderer" content="webkit">
    <meta http-equiv="Cache-Control" content="no-siteapp" />
    <meta name="keywords" content="广东国防教育学会">
    <meta name="description" content="广东国防教育学会">
    <title>广东国防教育学会</title>
    <link rel="shortcut icon" href="/Public/Admin/img/favicon.ico">
    <link href="/Public/Admin/css/bootstrap.min14ed.css?v=3.3.6" rel="stylesheet">
    <link href="/Public/Admin/css/font-awesome.min93e3.css?v=4.4.0" rel="stylesheet">
    <link href="/Public/Admin/css/style.min862f.css?v=4.1.0" rel="stylesheet">
    <link rel="stylesheet" href="/Public/Admin/bootstrap_validator-0.4.5/dist/css/bootstrapValidator.css"/>
    <link href="/Public/Admin/css/animate.min.css" rel="stylesheet">
    <link href="/Public/Admin/plugins/iCheck/all.css" rel="stylesheet">
    <style>
		/* *{
			color:#000;
		} */
		.btn{
		 	 padding: 5px 8px;
		 	 /* border-radius: 0px; */
			font-size:12px;
			margin-bottom:0px;
		}
		.table{
	    	width: 100%;
		}
		.table>tbody>tr>td, .table>tbody>tr>th, .table>tfoot>tr>td, .table>tfoot>tr>th, .table>thead>tr>td, .table>thead>tr>th{
			padding:0px 5px;
			/*text-align: center;*/
			vertical-align: middle!important;
		}
		.form-control{
			font-size: 12px;
		}
		#file-pretty button{
			padding: 7.5px 13px;
		}
		p{
	   		 margin: 0 0;
		}
		.pagination{
			margin:0px 0px;
		}
		.select_width{
			width:100px;
		}
		.select_no_border{
			border-right: none;
		}
	</style>
</head>
<!--  <link rel="stylesheet" href="/Public/Admin/bootstrap-datetimepicker-master/css/bootstrap-datetimepicker.min.css" media="screen"/> -->
<body class="gray-bg">
	<div class="wrapper wrapper-content animated fadeInRight">
		<div class="row">
			<div class="col-sm-12">
				<div class="ibox float-e-margins">
                    <div class="ibox-title">
                        <?php if($act == 'add'): ?><h5>添加申请</h5>
                    	<?php else: ?>
                    		<h5>修改申请</h5><?php endif; ?>
                        <div class="ibox-tools" style="margin-top: -6px;">
                            <button onclick="history.go(-1);" class="btn btn-primary"><i class="fa fa-arrow-left"></i> 返回</button>
                        </div>
                    </div>
                    <div class="ibox-content">
                        <form action="/Admin/ApplyUser/addApply" method="post" class="form-horizontal" id="defaultForm" enctype="multipart/form-data">
                        
                           <div class="form-group">
                                <label class="col-sm-2 control-label">姓名</label>
                                <div class="col-sm-6">
                                    <input type="text" name="full_name" value="<?php echo ($apply['full_name']); ?>" class="form-control">
                                </div>
                            </div>
                            <div class="hr-line-dashed"></div>
                            
                            <div class="form-group">
                                <label class="col-sm-2 control-label">申请类型</label>
                                <div class="col-sm-6">
                                    <input type="text" value="<?php switch($apply['apply_type']): case "3": ?>副会长<?php break;?>
										    <?php case "4": ?>理事<?php break;?>
										    <?php case "5": ?>国旗文化<?php break;?>
										    <?php case "6": ?>军事运动<?php break;?>
										    <?php case "7": ?>国防传媒<?php break;?>
										    <?php case "8": ?>军事警觉<?php break; endswitch;?>" class="form-control">
									<input type="hidden" name="apply_type" value="<?php echo ($apply['apply_type']); ?>" class="form-control">	 
									<input type="hidden" name="user_id" value="<?php echo ($apply['user_id']); ?>" class="form-control">	 
                                </div>
                            </div>
                            <div class="hr-line-dashed"></div>
                            
                            <div class="form-group">
                                <label class="col-sm-2 control-label">单位名称</label>
                                <div class="col-sm-6">
                                    <input type="text" name="company" value="<?php echo ($apply['company']); ?>" class="form-control">
                                </div>
                            </div>
                            <div class="hr-line-dashed"></div>
                           <!--  
                            <div class="form-group">
                                <label class="col-sm-2 control-label">手机号码</label>
                                <div class="col-sm-6">
                                    <input type="text" name="phone_number" value="<?php echo ($apply['phone_number']); ?>" class="form-control">
                                </div>
                            </div>
                            <div class="hr-line-dashed"></div> -->
                            
                             <div class="form-group">
                                <label class="col-sm-2 control-label">邮箱</label>
                                <div class="col-sm-6">
                                    <input type="text" name="email" value="<?php echo ($apply['email']); ?>" class="form-control">
                                </div>
                            </div>
                            <div class="hr-line-dashed"></div>
                            
                            <div class="form-group">
                                <label class="col-sm-2 control-label">申请时间</label>
                                <div class="col-sm-6">
                                    <input type="text" name="add_time" value="<?php echo (date("Y-m-d",$apply['add_time'])); ?>" class="form-control">
                                </div>
                            </div>
                            <div class="hr-line-dashed"></div>
                            
                              <div class="form-group">
                                <label class="col-sm-2 control-label">证明材料</label>
                                <div class="col-sm-6">
                                     <a target="_blank" href="<?php echo ($apply['prove_img']); ?>"><i class="fa fa-image fa-2x"></i></a>
                                </div>
                            </div>
                            <div class="hr-line-dashed"></div>
                            
                             <div class="form-group">
                                <label class="col-sm-2 control-label">证件照</label>
                                <div class="col-sm-6">
                                     <a target="_blank" href="<?php echo ($apply['card_img']); ?>"><i class="fa fa-image fa-2x"></i></a>
                                </div>
                            </div>
                            <div class="hr-line-dashed"></div>
                            
                            <div class="form-group">
                                <label class="col-sm-2 control-label">个性签名</label>
                                <div class="col-sm-6">
                                    <textarea name="note" placeholder="个性签名" rows="5" class="form-control"><?php echo (htmlspecialchars_decode($apply['autograph'])); ?></textarea>
                                    <!-- <span class="help-block m-b-none"><i class="fa fa-info-circle"></i> 请输入不通过原因</span> -->
                                </div>
                            </div>
                            <div class="hr-line-dashed"}></div> 
                            
                            <div class="form-group">
                                <label class="col-sm-2 control-label">个人简介</label>
                                <div class="col-sm-6">
                                    <textarea name="note" placeholder="个人简介" rows="5" class="form-control"><?php echo (htmlspecialchars_decode($apply['introduce'])); ?></textarea>
                                    <!-- <span class="help-block m-b-none"><i class="fa fa-info-circle"></i> 请输入不通过原因</span> -->
                                </div>
                            </div>
                            <div class="hr-line-dashed"}></div> 
                            
                            <div class="form-group">
                                <label class="col-sm-2 control-label">补充说明</label>
                                <div class="col-sm-6">
                                    <textarea name="note" placeholder="补充说明" rows="5" class="form-control"><?php echo (htmlspecialchars_decode($apply['note'])); ?></textarea>
                                    <!-- <span class="help-block m-b-none"><i class="fa fa-info-circle"></i> 请输入不通过原因</span> -->
                                </div>
                            </div>
                            <div class="hr-line-dashed"}></div> 
                            
                                <div class="form-group" id="trial_status_group">
                                <label class="col-sm-2 control-label">审核状态</label>
                                <div class="i-check col-sm-6" style="line-height: 30px;">
                                <input type="radio" name="status" value="1" <?php if(($apply['status'] == 1)): ?>checked="checked"<?php endif; ?> />
                              	  待审核&nbsp;
                                <input type="radio" name="status" value="2" <?php if(($apply['status'] == 2) or ($apply['status'] == '')): ?>checked="checked"<?php endif; ?>/>
                               	 通过&nbsp;
                               	<input type="radio" name="status" value="3" <?php if($apply['status'] == 3): ?>checked="checked"<?php endif; ?>/>
                               	 不通过&nbsp;
                                </div>
                            </div>
                            <div class="hr-line-dashed"></div>
                            
                            <div class="form-group reason_class" <?php if($apply['status'] != 3): ?>style="display:none;"<?php endif; ?>>
                                <label class="col-sm-2 control-label">不通过原因</label>
                                <div class="col-sm-6">
                                    <textarea name="refuse" placeholder="请输入不通过原因" rows="5" class="form-control"><?php echo ($apply['refuse']); ?></textarea>
                                    <!-- <span class="help-block m-b-none"><i class="fa fa-info-circle"></i> 请输入不通过原因</span> -->
                                </div>
                            </div>
                            <div class="hr-line-dashed reason_class" <?php if($apply['status'] != 3): ?>style="display:none;"<?php endif; ?>></div> 
                            	
                            <input type="hidden" name="act" value="<?php echo ($act); ?>" />
                            <input type="hidden" name="id" value="<?php echo ($id); ?>" />
                            <div class="form-group">
                                <div class="col-sm-4 col-sm-offset-2">
                                    <button class="btn btn-primary" type="submit">保存</button>
                                    <button class="btn btn-white" type="submit">取消</button>
                                </div>
                            </div>
                        </form>
                    </div>
                </div>
				</div>
			</div>
		</div>
	</div>


	
<script src="/Public/Admin/js/jquery.min.js?v=2.1.4"></script>
<script src="/Public/Admin/js/bootstrap.min.js?v=3.3.6"></script>
<!-- <script src="/Public/Admin/js/content.min.js?v=1.0.0"></script> -->
<script type="text/javascript" src="/Public/Admin/bootstrap_validator-0.4.5/dist/js/bootstrapValidator.js"></script>
<script src="/Public/Admin/plugins/layer/layer.js"></script>
<script src="/Public/Admin/plugins/iCheck/icheck.min.js"></script>

<script>
//设置checkbox按钮
$('.i-check').iCheck({
	checkboxClass : "icheckbox_square-green",
	radioClass : "iradio_square-green",
});
</script>

</body>
</html>
<!-- 	 <script src="/Public/Home/js/region_select.js"></script>
      <script type="text/javascript">
                new PCAS('province', 'city', 'area', '<?php echo ($activity['province']?$activity['province']:'广东省'); ?>', '<?php echo ($activity['city']?$activity['city']:'广州市'); ?>', '<?php echo ($activity['area']?$activity['area']:'天河区'); ?>');
     </script>
	<script src="/Public/ueditor/ueditor.config.js" type="text/javascript"></script>
    <script src="/Public/ueditor/ueditor.all.js" type="text/javascript"></script>
 -->
<script>
           //UE.getEditor('editor');
           /* UE.getEditor('editor', {
               theme:"default", //皮肤
               lang:'zh-cn', //语言
               serverUrl: '/server/ueditor/controller.php'
           }); */

          /*UE.getEditor('editor');
            UE.getEditor('requirement');
            UE.getEditor('prize_set'); */
 </script>   

	<script>
$(document).ready(function() {

    /**
     * 下面是进行插件初始化
     * 你只需传入相应的键值对
     * */
    $('#defaultForm').bootstrapValidator({
            message: 'This value is not valid',
            feedbackIcons: {/*输入框不同状态，显示图片的样式*/
            	  valid: 'glyphicon glyphicon-ok',
                  invalid: 'glyphicon glyphicon-remove',
                  validating: 'glyphicon glyphicon-refresh'
            },
            fields: {/*验证*/
            	nickname: {/*键名username和input name值对应*/
                    message: '会员昵称验证失败',
                    validators: {
                        notEmpty: {/*非空提示*/
                            message: '会员昵称不能为空'
                        },
                        stringLength: {/*长度提示*/
                            min: 2,
                            max: 30,
                            message: '会员昵称长度必须在2到30之间'
                        }/*最后一个没有逗号*/
                    }
                }
               
            }
            // 还有一个比较常用的就是submitHandler属性，它对应着提交按钮的事件方法。
            // submitHandler: function (validator, form, submitButton) {
                //alert("submit");
               /*  var menu_name = $("input[name='menu_name']").val();
                var link = $("input[name='link']").val();
                var ico = $("input[name='ico']").val();
                $.ajax({
                    url : '/Admin/ApplyUser/addMenu',
                    type : 'get',
                    data : {'menu_name' : menu_name, 'link' : link, 'ico':ico},
                    dataType : 'json',
                    success : function(data){
                      alert(data.message);
                    }
                }); */
           // }
        });
});


$("#trial_status_group .iCheck-helper").click(function(){
	if($(this).siblings("input").val() == 3){
		$(".reason_class").show();
	}else{
		$(".reason_class").hide();
	}
});
</script>

<!-- <script type="text/javascript" src="/Public/Admin/bootstrap-datetimepicker-master/js/bootstrap-datetimepicker.js" charset="UTF-8"></script>
<script type="text/javascript" src="/Public/Admin/bootstrap-datetimepicker-master/js/locales/bootstrap-datetimepicker.zh-CN.js" charset="UTF-8"></script>

<script type="text/javascript">
        $('#datetimepicker6').datetimepicker({
             language:  'zh-CN',
             format: 'yyyy-mm-dd HH:ii',
             autoclose:true,//日期选择完成后是否关闭选择框
        });
        $('#datetimepicker7').datetimepicker({
            language:  'zh-CN',
            format: 'yyyy-mm-dd HH:ii',
            autoclose:true //Important! See issue #1075
        });
</script>

 <script src="/Public/Admin/js/plugins/prettyfile/bootstrap-prettyfile.js"></script>
 <script type="text/javascript">
 $(function(){
    $('#file-pretty input[type="file"]').prettyFile();
 });

 //修改菜单
function lookImg(){
    $('#myModal').modal('show');
}
 </script> -->

       
</body>
</html>